package Entity;

import lombok.Data;

import javax.json.bind.annotation.JsonbProperty;

@SuppressWarnings("unused")
@Data
public class Appid {
    public Appid() {

    }

    public Appid(String error, String message, String openid, String access_token) {
        this.error =error ;
        this.message = message;
        this.openid = openid;
        this.access_token = access_token;

    }

    private int id;

    // 工号
    @JsonbProperty("error")
    private String error;

    // 姓名
    @JsonbProperty("message")
    private String message;

    // 身份
    @JsonbProperty("openid")
    private String  openid;

    // 部门
    @JsonbProperty("access_token")
    private String access_token;





    public String geterror() {
        return error;
    }

    public void seterror(String error) {
        this.error = error;
    }

    public String getmessage() {
        return message;
    }

    public void setmessage(String message) {
        this.message = message;
    }

    public String getopenid() {
        return openid;
    }

    public void setopenid(String openid) {
        this.openid = openid;
    }

    public String getaccess_token() {
        return access_token;
    }

    public void setaccess_token(String access_token) {
        this.access_token =access_token;
    }
}
